package chp05.homework;

import java.util.Scanner;

public class Home4 {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);

        while (true) {
            System.out.println("请输入数字1-7(输入0结束):");
            int num = input.nextInt();
            if (num == 1) {
                System.out.println("今天是星期一");
            } else if (num == 2) {
                System.out.println("今天是星期二");
            } else if (num == 3) {
                System.out.println("今天是星期三");
            } else if (num == 4) {
                System.out.println("今天是星期四");
            } else if (num == 5) {
                System.out.println("今天是星期五");
            } else if (num == 6) {
                System.out.println("今天是星期六");
            } else if (num == 7) {
                System.out.println("今天是星期日");
            }else if(num == 0){
                break;
            }
        }
    }
}
